local Class = require("Core.Class")
local BaseMapItem = require("Game.RunningLogic.MapItem.BaseMapItem")
local EventManager = require('Game.Manager.EventManager')

--- @Class HomeMapItem
local HomeMapItem = Class("BaseMapItem", BaseMapItem)

function HomeMapItem:__init()
    self.hardness = 1
    self.isThroughing = false
end

function HomeMapItem:OnTriggerEnter2D(other)
    if other:CompareTag('EmenyBullet') or other:CompareTag('PlayerBullet') then
        EventManager:Fire("GameOver")
    end
end

return HomeMapItem